class BootStrap {
	
	def init = { servletContext ->
		//		AdminConfig adminConfig = new AdminConfig(openRegistered:false, canInviteNum:10)
		//		adminConfig.save()
		//		
		//		def superRole = new Role(authority:'ROLE_SUPERVISOR',description:'super role')
		//		superRole.save()
		//		
		//		def adminRole = new Role(authority:'ROLE_ADMIN',description:'admin role')
		//		adminRole.save()
		//		
		//		def userRole = new Role(authority:'ROLE_USER',description:'user role')
		//		userRole.save()
		//		
		//		User user = new User(username:'admin',passwd:'passwd',email:'lyoecc@gmail.com')
		//		user.addToAuthorities(superRole)
		//		user.addToAuthorities(adminRole)
		//		user.addToAuthorities(userRole)
		//		user.save()
	}
	def destroy = {
	}
} 